var t = getApp();

Page({
    data: {
        copy_text: "",
        cards: [],
        info: {}
    },
    onLoad: function(t) {
        this.getdata(t.id);
    },
    onReady: function() {},
    getdata: function(a) {
        var n = this, e = t.getNetAddresss("plugin.yz-supply-camilo-resources.frontend.index.index.getCamiloResources");
        t._postNetWork({
            url: e,
            data: {
                order_id: a
            },
            success: function(a) {
                var e = a.data;
                if (1 != e.result) return t.tips(e.msg);
                var o = "";
                e.data.card.length > 0 && e.data.card.map(function(t) {
                    o += "卡号：".concat(t.card_number, "卡密：").concat(t.card_secret);
                }), n.setData({
                    cards: e.data.card,
                    info: e.data,
                    copy_text: o
                });
            }
        });
    },
    setClipboardData: function(t) {
        var a = t.currentTarget.dataset.text;
        wx.setClipboardData({
            data: a
        });
    },
    onShow: function() {},
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {},
    onShareAppMessage: function() {}
});